<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>jQuery UI Autocomplete - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
 
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script>
    ssssssssssssss
    var availableTags ;
    $(function() {
    	alert("====");
    	 $.ajax({
			contentType : "application/x-www-form-urlencoded; charset=utf-8",
			type : "POST",
			dataType : "json",
			url :"findAllSalary.action",
			async : false,
			data : "",
			
			error : function() {
				alert("error");
			},
			success : function(json) {
				alert(json);
				availableTags = json;
			
			}// end of success

		}); 
    	/* 
    	availableTags = [
            "性能测试",
            "能测试",
            "性测试",
            "性能试",
           "Clojure",
            "COBOL",
            "ColdFusion",
            "Erlang",
            "Fortran",
            "Groovy",
            "Haskell",
            "Java",
            "JavaScript",
            "Lisp",
            "Perl",
            "PHP",
            "Python",
            "Ruby",
            "Scala",
            "Scheme"
        ]; */
        $( "#tags" ).autocomplete({
            source: availableTags
        });
    });
    </script>
</head>
<body>
 
<div class="ui-widget">
    <label for="tags">Tags: </label>
    <input id="tags" />
</div>
 
 
</body>
</html>